import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class MaxHwaMethod {
    static  int max(int a,int b,int c){
        int max;
        max=a;
        if (b>max)b=max;
        if (c>max)c=max;
        return max;
    }
    //   *****以上是max方法

    //   *****以下是main方法
    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        int[] weight=new int[3];
        int[] height=new int[3];
        int[] age=new int[3];
        for (int i = 0; i <3 ; i++) {
            System.out.print("身高："); height[i]=stdIn.nextInt();
            System.out.print("体重："); weight[i]=stdIn.nextInt();
            System.out.print("年龄："); age[i]=stdIn.nextInt();
            System.out.println();
        }
        int maxH=max(height[0],height[1],height[2]);
        int maxW=max(weight[0],weight[1],weight[2]);
        int maxA=max(age[0],age[1],age[2]);
        System.out.println("身高的最大值"+maxH);
        System.out.println("体重的最大值"+maxW);
        System.out.println("年龄的最大值"+maxA);

    }


}
